<div>
    <h2 id="page-heading">
        <span>您的生成器</span>
        <button class="btn btn-primary float-right" (click)="refresh()">
            <fa-icon [icon]="'sync'"></fa-icon> <span>刷新</span>
        </button>
    </h2>
    <p>此页面显示您拥有的所有生成器。</p>
    <ngb-alert [dismissible]="false" type="info" >
        <div class="row">
            <div class="col-xs-1">
                &nbsp;
                <fa-icon [icon]="'lightbulb'"></fa-icon>
            </div>
            <div class="col-11">
                <span>您可以使用命令添加生成器：<b>jhipster login</b>。</span><br />
                <span>您可以使用命令获取生成器ID：<b>jhipster login --guid</b>。</span>
            </div>
        </div>
    </ngb-alert>
    <button class="btn btn-danger" (click)="openDataDeletionModal()">
        <fa-icon [icon]="'skull'"></fa-icon>
        <span class="">删除我的所有统计数据</span>
    </button>
    <jhi-alert></jhi-alert>
    <br />
    <div class="table-responsive" *ngIf="generatorIdentities">
        <table aria-describedby="您的生成器" class="table table-striped">
            <thead>
            <tr>
                <th scope="col"><span>生成器ID</span></th>
                <th scope="col"></th>
            </tr>
            </thead>
            <tbody>
            <tr *ngFor="let generatorIdentity of generatorIdentities; trackBy: trackId">
                <td>{{generatorIdentity.guid}}</td>
                <td class="text-right">
                    <div class="btn-group flex-btn-group-container">
                        <button class="btn btn-danger btn-sm" (click)="openUnbindModal(generatorIdentity.guid)">
                            <fa-icon [icon]="'times'"></fa-icon>
                            <span class="d-none d-md-inline">移除</span>
                        </button>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
